/**
 * Candidate number: 35834
 */
package tv.starfu.sequencer.matrix;
import de.lessvoid.nifty.Nifty;
import de.lessvoid.nifty.builder.ControlBuilder;
import de.lessvoid.nifty.builder.ControlDefinitionBuilder;
import de.lessvoid.nifty.builder.EffectBuilder;
import de.lessvoid.nifty.builder.HoverEffectBuilder;
import de.lessvoid.nifty.builder.ImageBuilder;
import de.lessvoid.nifty.builder.PanelBuilder;
import de.lessvoid.nifty.controls.button.builder.ButtonBuilder;
import de.lessvoid.nifty.controls.imageselect.builder.ImageSelectBuilder;

public class MatrixAtomControlDefinition {
    
    private static final String NAME = "matrixAtomControl";
    private static final String PARAMETER_CHANNELID = "channel";
    private static final String PARAMETER_STEPID = "step";
    
  
    public static void register(final Nifty nifty) {
        
        new ControlDefinitionBuilder("matrixatom") {
        {                          
                panel(new PanelBuilder() {
                    {
                        childLayoutCenter();
                        width("32px");
                        height("32px");
                        padding("10px");
                        alignCenter();
                        valignCenter();
                      //  focusable(true);
                        visibleToMouse();
                       // interactOnMouseOver("onMouseOver()");
//                        onHoverEffect(new HoverEffectBuilder("gradient") {{
//                            effectValue("offset", "0%", "color", "#222f");
//                            effectValue("offset", "100%", "color", "#f77f");
//                        }});

                        //controller(new MatrixAtomController());                
                            }}); // End panel
                                 
        }}.registerControlDefintion(nifty);
    }
    
  public static ControlBuilder getControlBuilder(final String id, final String channelID, final String stepID) {
    return new MatrixAtomBuilder(id) {{
     //  parameter(PARAMETER_CHANNELID, channelID);
     //  parameter(PARAMETER_STEPID, stepID);
    }};
  }    

}
